﻿using FluentNHibernate.Mapping;
using Shake.Framework.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shake.Framework.Mappings
{
    public class LogRecordMap : ClassMap<LogRecord>
    {
        public LogRecordMap()
        {
            this.Table("LogRecord");
            this.Id(t => t.Id).Column("Id");
            this.Map(t => t.Info).Column("Info");
            this.Map(t => t.Level).Column("Level");
            this.Map(t => t.LogAt).Column("LogAt");
            this.Map(t => t.Message).Column("Message");
            this.Map(t => t.StackTrace).Column("StackTrace");
            this.Map(t => t.Url).Column("Url");
        }
    }
}
